﻿<%@ Page Language="C#" MasterPageFile="~/ffl/ffl.master" AutoEventWireup="true" CodeFile="ManagerOfMonth.aspx.cs" Inherits="ffl_anonymous_ManagerOfMonth" Title="Untitled Page" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <form runat="server">
        <asp:Repeater runat="server" ID="ManagerOfMonthRepeater">
            <HeaderTemplate>
                <table width="100%" cellpadding="0" cellspacing="0">
                    <tr>
                        <td class="tableheader">Team</td>
                        <td class="tableheader">Manager</td>
                        <td class="tableheader">Month</td>
                        <td class="tableheader" align="center">Points</td>
                    </tr>
            </HeaderTemplate>
            <ItemTemplate>
                <tr>
                    <asp:HiddenField runat="server" ID="IdHidden" Value='<%# DataBinder.Eval(Container.DataItem, "ManagerOfMonthId") %>' />
                    <td><%# DataBinder.Eval(Container.DataItem, "TeamName")%></td>
                    <td><%# DataBinder.Eval(Container.DataItem, "Forename") + " " + DataBinder.Eval(Container.DataItem, "Surname") %></td>
                    <td><%# new DateTime(2010, Convert.ToInt32(DataBinder.Eval(Container.DataItem, "MonthNumber")),1).ToString("MMMM") %></td>
                    <td align="center"><%# DataBinder.Eval(Container.DataItem, "Points") %></td>
                </tr>
            </ItemTemplate>
            <FooterTemplate>
                </table>
            </FooterTemplate>
        </asp:Repeater>
        
        
    </form>
</asp:Content>

